package com.yuyue.springFramework.note07.entity;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

/**
 * 使用条件注解，以自定义的条件是false的Condition 实现类作为条件
 */
@Conditional(MyCondition1.class)
@Configuration
public class Configuration1 {

    //定义一个字符串的Bean
    @Bean
    public String configuretionBean1(){
        return "鱼跃";
    }
}
